<?php

if(!empty($_POST))
{
	
	$re = insert('banner_cate', $_POST);
	if($re)
	{
		echo '添加成功';
		header('Refresh:1;index.php?a=admin&b=banner_cate&c=index');
		die;
	}
	else
	{
		echo '添加失败';
		header('Refresh:1;index.php?a=admin&b=banner_cate&c=add');
		die;
	}	
}

include('app/admin/banner_cate/html/add.html');
?>